import './assets/main.css'
import './assets/style2.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import axios from '@/utils/request' // 引入封装的axios实例

// 1. 引入你需要的组件
import { Uploader } from 'vant'
// 2. 引入组件样式
import 'vant/lib/index.css'

const app = createApp(App)
console.log('app', app.config)
app.use(Uploader)
app.config.globalProperties.$axios = axios // 将axios挂载到全局
app.use(ElementPlus)
app.use(createPinia())
app.use(router)

app.mount('#app')
